package com.sevens.dao;

import java.util.List;

import com.sevens.vo.News;
import com.sevens.vo.NewsAccessary;
import com.sevens.vo.NewsOrder;

public interface NewsDao {

	public News saveNews(News news);
	public NewsAccessary saveNewsAccessary(NewsAccessary newsAccessary);
	public News queryNewsById(int newsId);
	public List<News> queryAllNews(String newscategory);
	public boolean deleteNewsById(int newsId);
	public List<News> queryNews(News news);
	public boolean deleteNews(News news);
	public boolean editNews(News news);
	public List<NewsAccessary> getAccessary(int newsId);
	public boolean deleteAccessary(int newsId);
	public NewsOrder saveNewsOder(NewsOrder newsOrder);
}
